package concept;

import java.util.HashMap;



public class Attributes extends HashMap<AttributesType, Integer>{
	
	public Attributes(int intelligence, int strength, int agility, int determination) {
		super();
		super.put(AttributesType.INTELLIGENCE, intelligence);
        super.put(AttributesType.STRENGTH, strength);
        super.put(AttributesType.AGILITY, agility);
        super.put(AttributesType.DETERMINATION, determination);
	}
	
	public void setAttribute(AttributesType attribute, int value){
		super.put(attribute, value);
	}
	
	public int getAttribute(AttributesType attribute){
		return super.get(attribute);
	}
	
	public void setIntelligence(int intelligence){
		super.put(AttributesType.INTELLIGENCE, intelligence);
	}
	
	public void setStrength(int strength){
		super.put(AttributesType.STRENGTH, strength);
	}
	
	public void setAgility(int agility){
		super.put(AttributesType.AGILITY, agility);
	}
	
	public void setDetermination(int determination){
		super.put(AttributesType.DETERMINATION, determination);
	}
	
	public int getIntelligence(){
		return super.get(AttributesType.INTELLIGENCE);
	}
	public int getStrength(){
		return super.get(AttributesType.STRENGTH);
	}
	public int getAgility(){
		return super.get(AttributesType.AGILITY);
	}
	public int getDetermination(){
		return super.get(AttributesType.DETERMINATION);
	}
	
}

